<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>中国福利彩票</title>
<link href="css/style.css" type="text/css" rel="stylesheet" />
	<link rel="icon" href="images/favicon.png" type="image/x-icon"/>
<script src="js/jquery-1.7.2.min.js"></script>

</head>

<body>
	<div class="Header">
    	<div class="width1200">
        	<div class="left H_logo"><img src="images/logo.png" width="200" /></div>
            <div class="right H_right">  <a href="Login.html">登录</a> </div>
            <div class="clear"></div>
        </div>
    </div>
	
    <div class="width1200">
    	<div class="Register">
        	
            <div class="FPSW_t"><img src="images/Zimg21.png" /></div>
            
            <div class="FPW_Sone">
            	<table width="100%" border="0" cellspacing="15" cellpadding="0">
                  <tr>
                    <td align="right">ID</td>
                    <td>
                    	<input type="text" placeholder="请输入你得手机号码" class="REP_n" id="phoneNum" maxlength="11"/>
                    </td>
                  </tr>
                  <tr>
                    <td align="right">&nbsp;</td>
                    <td>
                    	<input type="submit" value="确 定" class="RS_go" onclick="nextStep()"  style="margin-left:15px;"/>
                    </td>
                  </tr>
                </table>
            </div>
            
        </div>
    </div>
    
    <div class="Footer">
    	<div class="width1200">
        	<div class="left">版权所有：中国福利彩票发行管理中心    网站主办：中国福利彩票发行管理中心</div>
            <div class="right"><img src="images/Flogo.png" width="110" /></div>
            <div class="clear"></div>
        </div>
    </div>
</body>
<script type="text/javascript">
jQuery(document).ready(function($){
// 	getPicCode();
});
// //获得图片验证码
// function getPicCode(){
// 	var para = {
// 	        };
// 	$.ajax({
// 		url : "../../api/CrmSystem/verification/piccode",
// 		async:false,
// 		type : "GET",
// 		herder:{
// 			'Accept':'application/json',
// 			'Content-Type':'application/json'
// 		},
// 		dataType:"json",
// 		contentType:"application/json",
// 		data:JSON.stringify(para),
// 		error:function(XMLHttpRequest, textStatus, errorThrown){
// 			alert(errorThrown);
// 		},
// 		success: function(data, textStatus){
// 			if(data.success==true){
// 				$('#picImg').attr('src',data.verifycationImg);
// 				$('#realPicCode').attr('src',data.verifycationId);
// 			}else{
// 				alert("error:"+data.description);
// 				return;
// 			}
// 		}		
// 	});
// }	
// 	//点击确认，校验图片验证码，成功则调用主键转换接口
// 	function sureBtn(){
// 		//忘记密码获得手机号   校验ID，验证码
// 		if(!validateForgetPwdGetPhone('id','picCode')){
// 			return;
// 		}
// 		var para = {
// 				verifycationId:$('#realPicCode').val(),
// 					code:$('#picCode').val()
// 		}
// 		$.ajax({
// 			url : "../../api/CrmSystem/verification/check",
// 			async:false,
// 			type : "POST",
// 			herder:{
// 				'Accept':'application/json',
// 				'Content-Type':'application/json'
// 			},
// 			dataType:"json",
// 			contentType:"application/json",
// 			data:JSON.stringify(para),
// 			error:function(XMLHttpRequest, textStatus, errorThrown){
// 				alert(errorThrown);
// 			},
// 			success: function(data, textStatus){
// 				if(data.success==true){
// 					searchAccount();
// 				}else{
// 					alert("error:"+data.description);
// 					return;
// 				}
// 			}		
// 		});
// }

//调用主键转换接口
function searchAccount(){
	var para = {
// 			verifycationId:$('#realPicCode').val(),
// 			verifycationCode:$('#picCode').val(),
// 			id:$('#id').val()
	}
	$.ajax({
		url : "/api/CrmSystem/account/searchAccount?id="+$('#id').val()+"",
		async:false,
		type : "GET",
		herder:{
			'Accept':'application/json',
			'Content-Type':'application/json'
		},
		dataType:"json",
		contentType:"application/json",
// 		data:JSON.stringify(para),
		error:function(XMLHttpRequest, textStatus, errorThrown){
			alert(errorThrown);
		},
		success: function(data, textStatus){
			if(data.success==true){
				window.location.href='ForgetPassword.html?accountId='+data.accountId+'&phoneNum='+data.mobile+'';
			}else{
				alert("error:"+data.description);
				window.location.href='FPWDown.html';
				return;
			}
		}		
	});
}
</script>
<script src="js/SHA256.js"></script>
<script src="js/jsCallCookies.js"></script>
<script src="js/validation.js"></script>
<script src="js/countDown.js"></script>
</html>
